.elementor-widget-icon-box {
    display: none;
}

.elementor-widget-icon-box.show-family {
    display: block;
}

.product-family-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
}

.product-family-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 25px 0;
}

.family-product-item {
    display: flex;
    gap: 20px;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    align-items: flex-start;
    transition: transform 0.2s ease;
}

.family-product-item:hover {
    transform: translateY(-2px);
}

.family-product-image {
    flex: 0 0 300px;
    margin: 0;
}

.family-product-image img {
    width: 100%;
    height: 200px;
    display: block;
    object-fit: cover;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    transition: opacity 0.2s ease;
}

.family-product-image img:hover {
    opacity: 0.9;
}

.family-product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding-top: 0;
    min-width: 0;
}

.product-title {
    font-size: 20px;
    color: #000;
    margin: 0 0 5px 0;
    font-weight: 500;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-code {
    color: #f85c3d;
    font-size: 14px;
    margin-bottom: 15px;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.product-specs {
    margin-bottom: 15px;
    font-size: 13px;
}

.spec-item {
    display: flex;
    align-items: center;
    margin-bottom: 4px;
    flex-wrap: wrap;
    gap: 4px;
}

.spec-label {
    color: #666;
    font-size: 13px;
    margin-right: 8px;
    font-weight: 500;
}

.spec-value {
    color: #333;
    font-size: 13px;
    font-weight: 500;
}

.product-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: auto;
}

.product-price {
    font-size: 20px;
    color: #f85c3d;
    font-weight: 600;
    margin: 0;
}

.product-price .woocommerce-Price-currencySymbol {
    margin-left: 3px;
}

.detail-button {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background-color: #f85c3d;
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 600;
}

.detail-button:hover {
    background-color: #e54d30;
    color: #fff;
    text-decoration: none;
}

@media (max-width: 1200px) {
    .product-family-grid {
        gap: 15px;
    }
    
    .family-product-item {
        gap: 15px;
        padding: 15px;
    }
    
    .family-product-image {
        flex: 0 0 250px;
    }
}

@media (max-width: 991px) {
    .product-family-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .family-product-item {
        gap: 15px;
    }
    
    .family-product-image {
        flex: 0 0 200px;
    }
    
    .family-product-image img {
        height: 150px;
    }
}

@media (max-width: 576px) {
    .family-product-item {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }
    
    .family-product-image {
        flex: none;
        width: 100%;
    }
    
    .family-product-image img {
        height: 180px;
    }
    
    .family-product-info {
        text-align: center;
    }
    
    .spec-item {
        justify-content: center;
    }
    
    .product-actions {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
}