/* Product Card Styles */
.product-card {
    z-index: 1;
    height: 100%;
    display: flex;
    position: relative;
    overflow: hidden;
    padding: 15px;
    flex-direction: column;
    justify-content: space-between;
    transition: border-color .3s ease-in-out;
    border: 1px solid var(--color_product_showcase_card_border, #e0e0e0);
    background: var(--color_product_showcase_card_bg, #fff);
    border-radius: 5px;
    box-sizing: border-box;
    min-height: 420px;
    min-width: 260px;
    max-width: 320px;
    width: 100%;
    margin: 0 auto;
}
.product-card:hover {
    background: var(--color_product_showcase_card_bg, #fff) !important;
}
.card-img-wrapper {
    width: 100%;
    aspect-ratio: 1 / 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    overflow: hidden;
}
.product-main-img {
    width: 100%;
    height: 300px;
    object-fit: contain;
    border-radius: 4px;
    background: #f8f8f8;
    transition: transform 0.2s;
}
.product-card:hover .product-main-img {
    transform: scale(1.04);
}
.seals-list {
    position: absolute;
    top: 14px;
    left: 0;
    right: auto;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 2;
    align-items: flex-start;
    width: auto;
    min-width: unset;
}
.seal {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-width: 110px;
    padding: 5px 14px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    background: #888; /* fallback */
    margin: 0;
    line-height: 1.2;
}
.seal.featured {
    background: #ff9933;
}
.seal.promocao {
    background: #e53935;
}
.seal.profissional {
    background: #1976d2;
}
.seal.frete {
    background: #7c2cff;
}
.card-product-name {
    width: 100%;
    font-size: 16px;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    line-clamp: 3;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    height: 60px;
    margin-bottom: 15px;
    color: var(--color_product_showcase_text_primary, var(--color_general_color_text_general));
    text-wrap: wrap;
}
.product-prices {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 5px;
    position: relative;
}
.product-card-main-price {
    display: flex;
    flex-direction: column;
}
.product-card-price-new {
    font-size: 24px;
    font-weight: 700;
    color: var(--color_product_showcase_product_price, var(--color_general_color_text_primary));
}
.buy-action {
    margin-top: auto;
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 0;
    position: relative;
}
.card-buy-btn {
    width: 100%;
    background: var(--primary-color, #637952);
    color: #fff;
    font-size: 1.1rem;
    font-weight: bold;
    border: none;
    border-radius: 4px;
    padding: 11px 0;
    cursor: pointer;
    transition: background 0.2s;
    text-align: center;
    margin: 0;
    display: block;
}
.card-buy-btn:hover {
    background: #50613e !important;
    color: #fff !important;
}
.buy-buttons {
    width: 100%;
    display: block;
    padding: 0;
    margin: 0;
}

.product-card-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    width: 100%;
}
@media (max-width: 991px) {
    .product-card-list {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 575px) {
    .product-card-list {
        grid-template-columns: 1fr;
    }
}
.product-card-list > .product-card {
    min-width: 0;
    max-width: 100%;
}

/* Responsividade */
@media (max-width: 991px) {
    .product-card {
        min-height: 400px;
    }
    .card-img-wrapper, .product-main-img {
        height: 180px;
        min-height: 360px;
        max-height: 360px;
    }
}

/* Preços de Revenda */
.product-card-price-old {
    font-size: 15px;
    font-weight: 400;
    color: #999;
    text-decoration: line-through;
    margin-bottom: 8px;
    display: block;
}

.product-card-price-old::before {
    content: "De: ";
    color: #999;
    font-weight: 400;
}

.product-card-price-new {
    font-size: 24px;
    font-weight: 700;
    color: var(--color_product_showcase_product_price, var(--color_general_color_text_primary));
}

/* Quando há preço de revenda, ajustar tamanho e cor do preço novo */
.product-card-main-price:has(.product-card-price-old) .product-card-price-new {
    font-size: 28px;
    /* color: #1976d2; */
    font-weight: 800;
}

.product-card-main-price:has(.product-card-price-old) .product-card-price-new::before {
    content: "Por: ";
    /* color: #1976d2; */
    font-weight: 700;
    font-size: 14px;
}
@media (max-width: 767px) {
    .product-card {
        min-height: 340px;
        padding: 10px;
    }
    .card-img-wrapper, .product-main-img {
        height: 140px;
        min-height: 280px;
        max-height: 280px;
    }
    .card-product-name {
        min-height: 36px;
        font-size: 1rem;
    }
    .product-card-main-price {
        font-size: 1.1rem;
    }
}
@media (max-width: 575px) {
    .product-card {
        min-height: 260px;
        padding: 7px;
    }
    .card-img-wrapper, .product-main-img {
        height: 100px;
        min-height: 320px;
        max-height: 320px;
    }
    .card-product-name {
        min-height: 24px;
        font-size: 0.95rem;
    }
    .product-card-main-price {
        font-size: 1rem;
    }
} 

.actions {
    overflow: hidden;
    justify-self: flex-end;
    width: 100%;
    transition: all .3s ease-in-out;
    position: relative;
    margin-top: 10px;
} 

img.transparent {
    opacity: 0;
}
.image-lazy-container {
    width: 100%;
    height: 100%;
}
.image-lazy-container img {
    position: absolute;
    width: 100%;
    opacity: 1;
    transition: opacity .3s ease-in, visibility .3s ease-in;
}
.card-img-wrapper img {
    width: 100%;
} 

.showroom-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    transition: all .3s ease-in-out;
}
.larg-max {
    max-width: 1366px;
    margin: 0 auto;
} 

.catalog-container {
    width: 100%;
    display: flex;
    flex-direction: row;
    gap: 0;
    align-items: flex-start;
    justify-content: flex-start;
}
.catalog-sidebar {
    width: 100%;
    min-width: 150px;
    max-width: 240px;
    background: #fff;
    border-radius: 8px;
    margin-right: 20px;
    padding: 24px 16px 16px 0;
    box-sizing: border-box;
}
.catalog-main {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
}
.catalog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}
.catalog-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
}
.catalog-order {
    margin-left: auto;
}
.catalog-main .row {
    margin-left: 0;
    margin-right: 0;
    gap: 24px 0;
}
.catalog-main .product-card {
    margin-bottom: 24px;
} 

.catalog-layout {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    width: 100%;
    max-width: 1366px;
    margin: 0 auto;
    padding: 0 16px;
    box-sizing: border-box;
}
.catalog-sidebar-area {
    flex: 0 0 220px;
    max-width: 220px;
    min-width: 180px;
    width: 100%;
    margin-right: 24px;
}
.catalog-main-area {
    flex: 1 1 0;
    min-width: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
}
.catalog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    gap: 16px;
}
@media (max-width: 991px) {
    .catalog-layout {
        flex-direction: column;
        padding: 0 8px;
    }
    .catalog-sidebar-area {
        max-width: 100%;
        min-width: 0;
        width: 100%;
        margin-right: 0;
        margin-bottom: 24px;
    }
    .catalog-main-area {
        width: 100%;
    }
} 