
.trudes_ti_card_prices .custom-quote-button {
    background-color: #28a745 !important;
    color: #fff !important;
    padding: 4px 10px !important;
    font-size: 13px !important;
    font-weight: 600;
    border-radius: 4px;
    display: inline-block;
    text-align: center;
    text-decoration: none;
    line-height: 1.2;
    margin-bottom: 5px;
}

.trudes_ti_card_prices .custom-quote-button:hover {
    background-color: #218838 !important;
}

.trudes_ti_card_sku {
    font-size: 13px;
    color: #666;
    margin-top: 4px;
    text-align: center;
}

/* ===== CARDS DE PRODUTOS OTIMIZADOS ===== */
.trudes_ti_card {
    height: auto;
    min-height: auto;
    max-height: none;
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border-radius: 8px;
    padding: 12px;
    box-sizing: border-box;
    border: 1px solid rgba(94, 90, 84, 0.15);
    text-decoration: none !important;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.trudes_ti_card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    border-color: rgba(94, 90, 84, 0.25);
}

.trudes_ti_card_content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding-top: 8px;
    text-align: center;
}

/* ===== TÍTULO DO CARD ===== */
.trudes_ti_card_title {
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    color: #161716 !important;
    margin-bottom: 8px;
    line-height: 1.3;
    overflow: hidden;
    max-height: 18px;
}

.trudes_ti_card_title a {
    text-decoration: none !important;
    color: #161716;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
    text-overflow: ellipsis;
}

/* ===== NOME DO PRODUTO ===== */
.trudes_ti_card_product_name {
    font-size: 15px;
    font-weight: 500;
    text-align: center;
    margin-bottom: 8px;
    line-height: 1.3;
    overflow: hidden;
    color: #333;
    max-height: 39px;
}

.trudes_ti_card_product_name a {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #333;
    text-decoration: none !important;
    line-height: 1.3;
}

/* ===== CATEGORIA ===== */
.trudes_ti_card_category {
    display: block;
    font-size: 12px;
    color: #5564ab;
    text-decoration: none !important;
    margin-bottom: 8px;
    text-align: center;
    overflow: hidden;
    line-height: 1.2;
    font-weight: 500;
    max-height: 28px;
}

/* ===== IMAGEM DO PRODUTO ===== */
.trudes_ti_card_image {
    width: 100%;
    height: 180px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
    margin-bottom: 8px;
    border-radius: 6px;
    background: #f8f9fa;
}

.trudes_ti_card_image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease;
}

.trudes_ti_card:hover .trudes_ti_card_image img {
    transform: scale(1.05);
}

/* ===== BADGE DE DESCONTO ===== */
.trudes_ti_card_badge {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 45px;
    height: 22px;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* ===== GRID RESPONSIVO ===== */
.trudes_ti_grid_inner {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
    width: 100%;
    box-sizing: border-box;
    padding: 0 5px;
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 1200px) {
    .trudes_ti_grid_inner {
        grid-template-columns: repeat(5, 1fr);
        gap: 12px;
    }
}

@media (max-width: 1023px) {
    .trudes_ti_grid_inner {
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
    }
    
    .trudes_ti_card {
        padding: 10px;
    }
    
    .trudes_ti_card_image {
        height: 160px;
    }
}

@media (max-width: 768px) {
    .trudes_ti_grid_inner {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    
    .trudes_ti_card_title {
        font-size: 13px;
    }
    
    .trudes_ti_card_product_name {
        font-size: 14px;
    }
    
    .trudes_ti_card_image {
        height: 140px;
    }
}

@media (max-width: 639px) {
    .trudes_ti_grid_inner {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .trudes_ti_card {
        padding: 8px;
    }
    
    .trudes_ti_card_image {
        height: 120px;
    }
    
    .trudes_ti_card_title {
        font-size: 12px;
        margin-bottom: 6px;
    }
    
    .trudes_ti_card_product_name {
        font-size: 13px;
        margin-bottom: 6px;
    }
}

@media (max-width: 480px) {
    .trudes_ti_grid_inner {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
    
    .trudes_ti_card {
        padding: 6px;
    }
    
    .trudes_ti_card_image {
        height: 100px;
    }
    
    .trudes_ti_card_title {
        font-size: 11px;
        margin-bottom: 4px;
    }
    
    .trudes_ti_card_product_name {
        font-size: 12px;
        margin-bottom: 4px;
    }
    
    .trudes_ti_card_category {
        font-size: 10px;
        margin-bottom: 4px;
    }
}

/* ===== CONTAINERS DOS GRIDS ===== */
.trudes_ti_grid_branco,
.trudes_ti_grid_ofertas {
    margin: 0 auto;
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.trudes_ti_grid_header {
    text-align: left;
    margin-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

.trudes_ti_grid_title {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== PREÇOS ===== */
.trudes_ti_card_prices {
    margin-top: auto;
    text-align: center;
    font-size: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    flex-wrap: wrap;
    max-height: none;
    line-height: 1.3;
    margin-bottom: 8px;
    padding: 8px 0;
}

.trudes_ti_price_wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    line-height: 1.2em;
    overflow: visible;
}

.trudes_ti_card_regular_price {
    color: #808080;
    text-decoration: line-through;
    margin-right: 4px;
    display: inline-block;
    font-size: 13px;
}

.trudes_ti_card_sale_price {
    color: #008000;
    font-weight: 600;
    font-size: 13px;
    display: inline-block;
}

.trudes_ti_card_prefix {
    font-size: 12px;
    color: #666;
    font-weight: 500;
    margin-bottom: 2px;
}

/* ===== GRID ADMIN (MANTIDO PARA COMPATIBILIDADE) ===== */
.trudes-ti-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-start;
}

.trudes-ti-grid .grid-item {
    border: 1px solid #ccc;
    padding: 10px;
    width: calc(100% / 6 - 10px);
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border-radius: 4px;
}

.trudes-ti-grid .grid-item img {
    max-width: 100%;
    height: auto;
    margin-bottom: 4px;
}

.trudes-ti-grid .grid-item .product-name {
    font-weight: bold;
    margin-bottom: 2px;
    font-size: 11px;
}

.trudes-ti-grid .grid-item .product-sku {
    font-size: 10px;
    color: #555;
    margin-bottom: 2px;
}

.trudes-ti-grid .grid-item .product-checkbox {
    margin-top: 4px;
    font-size: 10px;
}

.trudes-ti-grid .grid-item .product-price {
    font-size: 11px;
    color: #008000;
    margin-bottom: 4px;
}
