
/**
 * BuyTuga Frontend Suite v2.0.4 — NCR Category Template Refinement
 */

html body.btfs-ncr-template,
html body.btfs-ncr-template #page,
html body.btfs-ncr-template .site,
html body.btfs-ncr-template .site-content,
html body.btfs-ncr-template .content-area,
html body.btfs-ncr-template .site-main,
html body.btfs-ncr-template main {
    background: #f1f3f6 !important;
}

body.btfs-ncr-template .woocommerce-products-header,
body.btfs-ncr-template .term-description,
body.btfs-ncr-template .taxonomy-description,
body.btfs-ncr-template .archive-description,
body.btfs-ncr-template .page-description {
    display: none !important;
}

.btfs-ncr-page {
    width: 100%;
    background: #f1f3f6 !important;
    color: #334155;
    padding-top: 8px;
}

.btfs-ncr-container {
    width: 100%;
    max-width: 1210px;
    margin: 0 auto;
    padding: 0 18px 44px;
    display: grid;
    grid-template-columns: 226px minmax(0, 1fr);
    column-gap: 28px;
    align-items: start;
    box-sizing: border-box;
}

/* Sidebar */
.btfs-ncr-sidebar {
    background: #f1f3f6;
    padding: 4px 0 30px;
    color: #536174;
    position: sticky;
    top: 16px;
    max-height: calc(100vh - 28px);
    overflow-y: auto;
    scrollbar-width: thin;
}

.btfs-ncr-sidebar h2 {
    margin: 0 0 22px;
    color: #2d3b4d;
    font-size: 18px;
    line-height: 1.2;
    font-weight: 800;
}

.btfs-ncr-filter {
    border-bottom: 1px solid #dfe5ec;
}

.btfs-ncr-filter button {
    width: 100%;
    min-height: 41px;
    border: 0;
    background: transparent;
    padding: 10px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
    color: #536174;
    font-size: 13px;
    font-weight: 800;
    text-align: left;
    box-shadow: none;
}

.btfs-ncr-filter button:hover,
.btfs-ncr-filter button:focus {
    background: transparent;
    color: #334155;
    outline: none;
}

.btfs-ncr-filter button b {
    color: #0072ff;
    font-size: 21px;
    line-height: 1;
    min-width: 18px;
    text-align: center;
    font-weight: 400;
}

.btfs-ncr-filter-panel {
    display: none;
    padding: 0 0 12px;
}

.btfs-ncr-filter.is-open .btfs-ncr-filter-panel {
    display: block;
}

.btfs-ncr-filter-panel ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.btfs-ncr-filter-panel a {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding: 6px 0;
    color: #6c7788;
    font-size: 12px;
    line-height: 1.35;
    text-decoration: none;
}

.btfs-ncr-filter-panel a:hover {
    color: #006bdc;
}

.btfs-ncr-filter-panel small {
    color: #9aa4b2;
    font-size: 10px;
}

.btfs-ncr-price-line {
    height: 4px;
    border-radius: 99px;
    background: #d5e2f4;
    margin: 12px 2px 8px;
}

.btfs-ncr-price-line i {
    display: block;
    width: 100%;
    height: 4px;
    border-radius: 99px;
    background: #006bdc;
}

.btfs-ncr-main {
    min-width: 0;
}

/* Header */
.btfs-ncr-header {
    margin: 0 0 18px;
    background: #f1f3f6;
}

.btfs-ncr-breadcrumb,
.btfs-ncr-breadcrumb .woocommerce-breadcrumb {
    margin: 0 0 20px;
    color: #7d8895;
    font-size: 12px;
}

.btfs-ncr-breadcrumb a {
    color: #627086;
    text-decoration: none;
}

.btfs-ncr-header h1 {
    margin: 0 0 8px;
    color: #334155;
    font-size: 22px;
    line-height: 1.2;
    font-weight: 800;
}

.btfs-ncr-header p {
    margin: 0;
    color: #66768a;
    font-size: 13px;
    line-height: 1.55;
}

/* Featured */
.btfs-ncr-featured {
    display: grid;
    grid-template-columns: 178px minmax(0, 1fr) 76px;
    gap: 20px;
    align-items: center;
    min-height: 166px;
    margin: 0 0 20px;
    padding: 20px 22px;
    background: #ffffff;
    box-shadow: 0 7px 18px rgba(15, 39, 66, 0.055);
    border: 0;
    border-radius: 0;
    box-sizing: border-box;
}

.btfs-ncr-featured-image {
    min-height: 128px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
}

.btfs-ncr-featured-image img {
    max-width: 168px;
    max-height: 128px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.btfs-ncr-featured h2 {
    margin: 0 0 7px;
    color: #344154;
    font-size: 17px;
    line-height: 1.25;
    font-weight: 800;
}

.btfs-ncr-featured h2 a {
    color: inherit;
    text-decoration: none;
}

.btfs-ncr-featured p {
    margin: 0 0 10px;
    max-width: 650px;
    color: #6d7a89;
    font-size: 13px;
    line-height: 1.45;
}

.btfs-ncr-featured-price {
    display: inline-block;
    margin-right: 16px;
    color: #253143;
    font-size: 19px;
    line-height: 1.2;
    font-weight: 900;
    vertical-align: middle;
}

.btfs-ncr-featured-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 172px;
    min-height: 38px;
    padding: 9px 20px;
    border-radius: 3px;
    background: #0073cf;
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none !important;
}

.btfs-ncr-arrows {
    display: flex;
    justify-content: flex-end;
    gap: 11px;
}

.btfs-ncr-arrows span {
    width: 34px;
    height: 34px;
    border: 2px solid #d8dde5;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #aab2bd;
    font-size: 28px;
    line-height: 1;
}

/* Toolbar */
.btfs-ncr-toolbar {
    display: grid;
    grid-template-columns: 320px minmax(180px, 1fr) auto;
    gap: 18px;
    align-items: center;
    margin: 0 0 14px;
}

.btfs-ncr-ordering {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btfs-ncr-ordering label {
    color: #516174;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.btfs-ncr-ordering select {
    width: 220px;
    min-height: 34px;
    padding: 6px 12px;
    border: 1px solid #ccd6e2;
    border-radius: 2px;
    background: #ffffff;
    color: #66768a;
    font-size: 12px;
}

.btfs-ncr-count {
    color: #98a2af;
    font-size: 11px;
    text-align: center;
}

.btfs-ncr-view-icons {
    display: inline-flex;
    gap: 8px;
    color: #526174;
    font-weight: 800;
    letter-spacing: 2px;
}

/* Cards */
.btfs-ncr-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 15px;
    margin: 0;
    padding: 0;
    list-style: none;
    background: #f1f3f6;
}

.btfs-ncr-product-card {
    margin: 0;
    padding: 18px 13px 17px;
    background: #ffffff;
    border: 0;
    border-radius: 3px;
    box-shadow: 0 6px 15px rgba(15, 39, 66, 0.065);
    min-height: 276px;
    box-sizing: border-box;
    text-align: center;
    overflow: hidden;
}

.btfs-ncr-product-link {
    display: flex;
    flex-direction: column;
    min-height: 240px;
    text-decoration: none !important;
}

.btfs-ncr-product-image {
    width: 100%;
    height: 142px;
    max-height: 142px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
}

.btfs-ncr-product-image img {
    max-width: 100%;
    max-height: 142px;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
}

.btfs-ncr-brand {
    display: block;
    margin: 0 0 5px;
    color: #9aa3af;
    font-size: 10px;
    line-height: 1.2;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.btfs-ncr-product-card h2 {
    min-height: 44px;
    margin: 0 0 12px;
    color: #3c4656;
    font-size: 12px;
    line-height: 1.34;
    font-weight: 600;
    text-align: center;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: normal;
    overflow-wrap: break-word;
}

.btfs-ncr-price {
    margin-top: auto;
    color: #2f3b4d;
    font-size: 20px;
    line-height: 1.2;
    font-weight: 900;
    text-align: center;
}

.btfs-ncr-price del {
    display: inline-block;
    color: #9aa3af;
    opacity: 1;
    font-size: 12px;
    font-weight: 500;
}

.btfs-ncr-price ins {
    color: #2f3b4d;
    text-decoration: none;
}

.btfs-ncr-more-wrap {
    text-align: center;
    margin: 36px 0 0;
}

.btfs-ncr-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 145px;
    min-height: 40px;
    border-radius: 3px;
    background: #0073cf;
    color: #ffffff !important;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 900;
    text-decoration: none !important;
}

.btfs-ncr-showing {
    margin-top: 12px;
    color: #9aa3af;
    font-size: 11px;
}

.btfs-ncr-empty {
    background: #ffffff;
    padding: 26px;
    color: #66768a;
    box-shadow: 0 6px 15px rgba(15, 39, 66, 0.07);
}

@media (max-width: 1180px) {
    .btfs-ncr-container {
        grid-template-columns: 220px minmax(0, 1fr);
        column-gap: 18px;
    }

    .btfs-ncr-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .btfs-ncr-container {
        display: block;
        padding: 0 12px 28px;
    }

    .btfs-ncr-sidebar {
        position: relative;
        top: auto;
        max-height: none;
        overflow: visible;
        margin: 14px 0 20px;
        padding: 16px;
        background: #ffffff;
        border-radius: 8px;
        box-shadow: 0 6px 15px rgba(15, 39, 66, 0.07);
    }

    .btfs-ncr-featured {
        grid-template-columns: 110px minmax(0, 1fr);
        padding: 14px;
    }

    .btfs-ncr-arrows {
        display: none;
    }

    .btfs-ncr-toolbar {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .btfs-ncr-count,
    .btfs-ncr-view-icons {
        display: none;
    }

    .btfs-ncr-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 13px;
    }
}

@media (max-width: 520px) {
    .btfs-ncr-grid {
        grid-template-columns: 1fr;
    }
}


/* v2.0.4 — sidebar mais próxima do modelo NCR: filtros fechados por padrão */
.btfs-ncr-template-v203 .btfs-ncr-sidebar h2 {
    margin-bottom: 20px;
}

.btfs-ncr-template-v203 .btfs-ncr-filter button {
    min-height: 42px;
}

.btfs-ncr-template-v203 .btfs-ncr-filter:not(.is-open) .btfs-ncr-filter-panel {
    display: none !important;
}

.btfs-ncr-template-v203 .btfs-ncr-price.is-open .btfs-ncr-filter-panel {
    display: block !important;
}


/* v2.0.4 — Mostrar mais incremental */
.btfs-ncr-more.is-loading {
    opacity: .75;
    pointer-events: none;
}

.btfs-ncr-load-status {
    margin-top: 10px;
    color: #8b97a7;
    font-size: 11px;
}

.btfs-ncr-grid.btfs-ncr-appending .btfs-ncr-product-card {
    animation: btfsNcrFadeIn .22s ease both;
}

@keyframes btfsNcrFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}
