:root {
    --catalog-primary: #53613b;
    --catalog-primary-dark: #354128;
    --catalog-primary-light: #77865b;
    --catalog-bg: #f7f7f3;
    --catalog-card: #ffffff;
    --catalog-text: #242821;
    --catalog-muted: #777b70;
    --catalog-border: #e7e8e1;
    --catalog-radius: 18px;
}

/* =========================================================
BASE
========================================================= */
body {
    background: var(--catalog-bg);
    color: var(--catalog-text);
}

/* =========================================================
HERO
========================================================= */
.catalog-hero {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--catalog-primary-dark);
    color: #fff;
}

.catalog-hero-image {
    position: absolute;
    inset: 0;
    background-image: url('../../files/company/images/catalog.png');
    /* background-size: cover; */
    /* background-position: center; */
    transform: scale(1.03);
}

.catalog-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg,
            rgba(25, 31, 20, 0.88) 0%,
            rgba(45, 55, 34, 0.68) 45%,
            rgba(45, 55, 34, 0.30) 100%);
}

.catalog-hero-content {
    position: relative;
    z-index: 2;
    padding-top: 70px;
    padding-bottom: 70px;
}

/* =========================================================
LOGO
========================================================= */

.catalog-brand {
    margin-bottom: 25px;
}

.catalog-logo {
    max-width: 230px;
    max-height: 100px;
    object-fit: contain;
    display: block;
}

.catalog-logo-text {
    display: inline-block;
    font-size: 58px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: -3px;
    color: #fff;
    text-shadow:
        0 3px 12px rgba(0, 0, 0, 0.25);
}

.catalog-welcome {
    max-width: 560px;
    margin: 0 0 30px;
    font-size: 18px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.90);
}

.catalog-hero-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 13px 22px;
    border-radius: 50px;
    background: #fff;
    color: var(--catalog-primary-dark);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all .25s ease;
}

.catalog-hero-button:hover {
    color: #fff;
    background: var(--catalog-primary);
    transform: translateY(-2px);
    text-decoration: none;
}

/* =========================================================
PRODUTOS
========================================================= */

.catalog-products {
    position: relative;
    z-index: 5;
    padding-top: 65px;
    padding-bottom: 140px;
}

/* =========================================================
HEADER DA SEÇÃO
========================================================= */

.catalog-section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 30px;
}

.catalog-section-kicker {
    display: block;
    margin-bottom: 6px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--catalog-primary);
}

.catalog-section-header h2 {
    margin: 0;
    font-size: 30px;
    font-weight: 750;
    letter-spacing: -0.7px;
    color: var(--catalog-text);
}

.catalog-product-count {
    color: var(--catalog-muted);
    font-size: 13px;
}

.catalog-filters {
    display: grid;
    grid-template-columns: minmax(170px, 1.2fr) repeat(4, minmax(120px, 1fr)) 38px;
    gap: 10px;
    align-items: center;
    margin-bottom: 30px;
}

.catalog-filter-search {
    position: relative;
}

.catalog-filter-search .fa {
    position: absolute;
    top: 50%;
    left: 12px;
    color: var(--catalog-muted);
    transform: translateY(-50%);
}

.catalog-filter-search input {
    padding-left: 34px;
}

.catalog-filters .form-control {
    height: 40px;
    border-color: var(--catalog-border);
    box-shadow: none;
}

.catalog-filter-clear {
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid var(--catalog-border);
    border-radius: 6px;
    background: var(--catalog-card);
    color: var(--catalog-muted);
    cursor: pointer;
}

.catalog-filter-clear:hover {
    border-color: var(--catalog-primary);
    color: var(--catalog-primary-dark);
}

.catalog-no-results {
    margin: -8px 0 24px;
    color: var(--catalog-muted);
}

/* =========================================================
GRID
========================================================= */

.catalog-product-column {
    margin-bottom: 28px;
}

/* =========================================================
CARD
========================================================= */

.catalog-product-card {
    height: 100%;
    overflow: hidden;
    background: var(--catalog-card);
    border: 1px solid var(--catalog-border);
    border-radius: var(--catalog-radius);
    box-shadow:
        0 4px 18px rgba(31, 40, 26, 0.045);
    transition:
        transform .25s ease,
        box-shadow .25s ease;
}

.catalog-product-card:hover {
    transform: translateY(-5px);
    box-shadow:
        0 16px 35px rgba(31, 40, 26, 0.10);
}

/* =========================================================
IMAGEM
========================================================= */

.catalog-product-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1.12;
    overflow: hidden;
    background: #eeeeea;
}

.catalog-product-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .45s ease;
}

.catalog-product-card:hover .catalog-product-image img {
    transform: scale(1.045);
}

/* =========================================================
PLACEHOLDER
========================================================= */

.catalog-placeholder-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(135deg,
            #eef0e9,
            #e3e6dd);
    color: #a5aa9b;
    font-size: 30px;
}

/* =========================================================
BODY
========================================================= */

.catalog-product-body {
    padding: 16px;
}

.catalog-product-body h3 {
    margin: 0 0 7px;
    font-size: 16px;
    line-height: 1.35;
    font-weight: 700;
    color: var(--catalog-text);
}

.catalog-product-description {
    min-height: 34px;
    margin: 0 0 13px;
    font-size: 12px;
    line-height: 1.45;
    color: var(--catalog-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* =========================================================
PREÇO + BOTÃO
========================================================= */

.catalog-product-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
}

.catalog-price {
    font-size: 20px;
    font-weight: 800;
    color: var(--catalog-primary-dark);
    letter-spacing: -0.5px;
}

.catalog-price small {
    margin-right: 2px;
    font-size: 11px;
    font-weight: 600;
    color: var(--catalog-muted);
}

.catalog-add-button {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: var(--catalog-primary);
    color: #fff;
    cursor: pointer;
    box-shadow:
        0 5px 12px rgba(65, 82, 45, 0.20);
    transition: all .2s ease;
}

.catalog-add-button:hover {
    background: var(--catalog-primary-dark);
    transform: scale(1.07);
}

.catalog-add-button:active {
    transform: scale(.95);
}

/* =========================================================
QUANTIDADE
========================================================= */

.catalog-product-quantity {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--catalog-border);
}

.catalog-product-quantity label {
    margin: 0;
    font-size: 11px;
    color: var(--catalog-muted);
    white-space: nowrap;
}

.catalog-product-quantity input {
    width: 55px;
    height: 30px;
    padding: 2px 5px;
    border: 1px solid var(--catalog-border);
    border-radius: 7px;
    font-size: 12px;
    text-align: center;
    box-shadow: none;
}

.catalog-product-quantity input:focus {
    border-color: var(--catalog-primary);
    box-shadow:
        0 0 0 2px rgba(83, 97, 59, 0.10);
}

/* =========================================================
BOTÃO WHATSAPP
========================================================= */

.catalog-fixed-finalize {
    position: fixed;
    right: 25px;
    bottom: 25px;
    z-index: 1100;
}

.catalog-whatsapp-button {
    min-width: 230px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    border-radius: 14px;
    background: var(--catalog-primary-dark);
    color: #fff;
    box-shadow:
        0 12px 35px rgba(25, 35, 20, 0.28);
    text-decoration: none;
    transition: all .25s ease;
}

.catalog-whatsapp-button:hover {
    color: #fff;
    background: var(--catalog-primary);
    transform: translateY(-3px);
    text-decoration: none;
}

.catalog-whatsapp-button>.fa-whatsapp {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    font-size: 21px;
}

.catalog-whatsapp-button span {
    display: flex;
    flex-direction: column;
    flex: 1;
    font-size: 13px;
    font-weight: 700;
}

.catalog-whatsapp-button span small {
    margin-bottom: 1px;
    font-size: 9px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: .65;
}

.catalog-whatsapp-button>.fa-angle-right {
    opacity: .65;
}

/* =========================================================
RESPONSIVO
========================================================= */

@media (max-width: 767px) {
    .catalog-hero {
        min-height: 430px;
    }

    .catalog-hero-image {
        background-position: center;
        background-size: cover;
    }

    .catalog-hero-overlay {
        background:
            linear-gradient(90deg,
                rgba(25, 31, 20, 0.86),
                rgba(45, 55, 34, 0.48));
    }

    .catalog-hero-content {
        /* padding: 55px 25px; */
        padding: 100px 25px 20px;
    }

    .catalog-logo {
        max-width: 190px;
        max-height: 80px;
    }

    .catalog-logo-text {
        font-size: 45px;
    }

    .catalog-welcome {
        font-size: 15px;
        max-width: 340px;
    }

    .catalog-products {
        padding: 40px 12px 130px;
    }

    .catalog-section-header {
        align-items: center;
        margin-bottom: 22px;
    }

    .catalog-section-header h2 {
        font-size: 23px;
    }

    .catalog-product-count {
        font-size: 11px;
    }

    .catalog-filters {
        grid-template-columns: 1fr 1fr;
        margin-bottom: 22px;
    }

    .catalog-filter-search {
        grid-column: 1 / -1;
    }

    .catalog-cart {
        bottom: 82px;
    }

    .catalog-product-column {
        padding-left: 6px;
        padding-right: 6px;
        margin-bottom: 12px;
    }

    .catalog-product-body {
        padding: 12px;
    }

    .catalog-product-body h3 {
        font-size: 14px;
    }

    .catalog-product-description {
        font-size: 11px;
    }

    .catalog-price {
        font-size: 17px;
    }

    .catalog-add-button {
        width: 35px;
        height: 35px;
    }

    .catalog-fixed-finalize {
        left: 15px;
        right: 15px;
        bottom: 15px;
    }

    .catalog-whatsapp-button {
        width: 100%;
        justify-content: center;
    }

}

/* =========================================================
CARROSSEL (produto)
========================================================= */
.catalog-product-carousel {
    position: relative;
    cursor: pointer;
}

.carousel-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity .3s ease, transform .3s ease;
}

.carousel-slide.active {
    opacity: 1;
    position: relative;
    transform: scale(1);
}

.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    border: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.carousel-prev {
    left: 10px;
}

.carousel-next {
    right: 10px;
}

/* =========================================================
CARRINHO FLUTUANTE
========================================================= */
.catalog-cart {
    position: fixed;
    right: 24px;
    bottom: 92px;
    z-index: 1200;
    text-align: right;
}

.catalog-cart-toggle {
    background: var(--catalog-primary);
    color: #fff;
    border: none;
    padding: 10px 14px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
    cursor: pointer;
}

.catalog-cart-toggle .cart-label {
    font-weight: 600;
}

.catalog-cart-toggle #cart-count {
    background: rgba(255, 255, 255, 0.15);
    padding: 4px 8px;
    border-radius: 12px;
}

.catalog-cart-panel {
    width: 320px;
    max-width: calc(100vw - 64px);
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 14px 40px rgba(2, 18, 20, 0.12);
    padding: 12px;
    margin-top: 10px;
    display: none;
}

.catalog-cart-panel.open {
    display: block;
}

.catalog-cart-panel h5 {
    margin: 0 0 8px 0;
}

.catalog-cart-panel ul {
    max-height: 260px;
    overflow: auto;
    padding-left: 0;
}

.catalog-cart-actions .btn {
    width: 100%;
}

.catalog-cart-total {
    font-weight: 700;
    margin-bottom: 8px;
}

/* =========================================================
MODAL
========================================================= */
#catalog-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1300;
}

#catalog-modal.open {
    display: flex;
}

.catalog-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
}

.catalog-modal-dialog {
    position: relative;
    width: 90%;
    max-width: 1000px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    z-index: 2;
}

.catalog-modal-close {
    position: absolute;
    right: 12px;
    top: 8px;
    background: transparent;
    border: 0;
    font-size: 28px;
    color: #333;
    cursor: pointer;
    z-index: 3;
}

.catalog-modal-body {
    display: flex;
    gap: 18px;
    padding: 18px;
    align-items: flex-start;
}

.catalog-modal-media {
    flex: 1 1 50%;
}

.modal-carousel img {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 8px;
}

.catalog-modal-info {
    flex: 1 1 50%;
}

/* modal carousel styling */
.modal-carousel {
    position: relative;
    width: 100%;
    height: 60vh;
    max-height: 520px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .28s ease, transform .28s ease;
}

.modal-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.modal-slide.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 2;
}

.modal-prev,
.modal-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
}

.modal-prev {
    left: 12px;
}

.modal-next {
    right: 12px;
}

/* ZOOM: modal */
.modal-slide img {
    transition: transform .18s ease, transform-origin .05s ease;
    cursor: zoom-in;
}

.modal-slide.zoomed img {
    transform: scale(2);
    cursor: zoom-out;
}

.modal-carousel {
    cursor: default;
    overflow: hidden;
}

@media (max-width:767px) {
    .catalog-modal-dialog {
        width: 96%;
        max-height: 92vh;
        overflow-y: auto;
    }

    .catalog-modal-body {
        flex-direction: column;
    }

    .catalog-modal-media,
    .catalog-modal-info {
        width: 100%;
        flex: 1 1 auto;
    }

    .modal-carousel {
        height: 42vh;
        min-height: 220px;
        max-height: 360px;
    }
}

/* Destaque do comentário no modal */
.catalog-modal-comments.highlight {
    background: #fff8e1;
    border-left: 4px solid #ffc107;
    padding: 8px 10px;
    border-radius: 4px;
    color: #856404;
    margin-top: 8px;
}

.catalog-modal-price {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 999px;
    background: linear-gradient(90deg, #fff8e1 0%, #fff3cd 100%);
    border: 1px solid #ffe08a;
    font-weight: 700;
    color: #7a5a00;
}

#modal-price {
    font-size: 1.3rem;
    font-weight: 800;
    color: #1f6f43;
}

.catalog-promo-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    background: #dc3545;
    border-radius: 999px;
    padding: 4px 8px;
    letter-spacing: 0.3px;
}

.catalog-old-price {
    display: block;
    margin-right: 0;
    text-decoration: line-through;
    color: #8a8f98 !important;
    font-size: 12px !important;
    line-height: 1.2;
}

.catalog-product-code {
    display: block;
    color: #8a8f98;
    font-size: 0.72rem;
    line-height: 1.2;
    margin-top: -2px;
}

.catalog-promo-price {
    color: #c62828;
}

.catalog-modal-price-old {
    margin-right: 6px;
    text-decoration: line-through;
    color: #8a8f98;
    font-size: 0.95rem;
    font-weight: 600;
}

/* =========================================================
PAGINAÇÃO CLIENT-SIDE
========================================================= */

.catalog-pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 8px 0 35px;
}

.catalog-load-more {
    min-width: 190px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 11px 20px;
    border: 1px solid var(--catalog-border);
    border-radius: 50px;
    background: var(--catalog-card);
    color: var(--catalog-primary-dark);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(31, 40, 26, 0.06);
    transition: all .2s ease;
}

.catalog-load-more:hover {
    border-color: var(--catalog-primary);
    background: var(--catalog-primary);
    color: #fff;
    transform: translateY(-2px);
}

.catalog-load-more:active {
    transform: translateY(0);
}

.catalog-load-more .fa {
    font-size: 14px;
}

@media (max-width: 767px) {
    .catalog-pagination-controls {
        margin: 4px 0 28px;
    }

    .catalog-load-more {
        width: 100%;
        max-width: 300px;
    }
}
